#!/bin/bash
echo "验证工作区配置..."
cd /d/vc/UEStudio/src

echo "1. 检查工作区文件:"
if [ -f "CodeBlocks_wx30_64.workspace" ]; then
    echo "✅ 工作区文件存在"
    grep -q "cbp2make_ai" CodeBlocks_wx30_64.workspace && echo "✅ cbp2make_ai 项目在工作区中" || echo "❌ cbp2make_ai 项目不在工作区中"
else
    echo "❌ 工作区文件不存在"
fi

echo ""
echo "2. 检查项目文件:"
if [ -f "tools/cbp2make_ai/cbp2make_aicoder.cbp" ]; then
    echo "✅ cbp2make_ai 项目文件存在"
else
    echo "❌ cbp2make_ai 项目文件不存在"
fi

echo ""
echo "3. 测试编译:"
cd tools/cbp2make_ai
if [ -f "bin/cbp2make_ai.exe" ]; then
    echo "✅ cbp2make_ai 可执行文件已编译"
    ./bin/cbp2make_ai.exe --help | head -5
else
    echo "❌ cbp2make_ai 可执行文件未编译"
fi
